<template>
    <div>
        <div class="top">
          <InputParent v-for="(item,i) of arr" :key="i" :test="item">
          </InputParent>
        </div>
    </div>
</template>
<script >
import InputParent from './InputOne.vue'
export default {
  components: {
    InputParent
  },
  data: function () {
    return {
      arr: [
        {name: '张三', age: 15},
        {name: '李四', age: 20},
        {name: '王五', age: 18}
      ]
    }
  }
}
</script>
<style scoped>
.top{
  width: 30%;
}
</style>
